How does the static variable 'n' affect the output of this recursive C function